import request from '@/utils/request'
import { getToken } from '@/utils/token'

export function getEmailInfoApi(adminId) {
  return request({
    method:'GET',
    url:'email/getEmailInfo',
    params:{adminId},
    headers:{
      'Access-Token':getToken()
    }
  })
}

export function addEmailInfoApi(emailSendInfo) {
  console.log(emailSendInfo);

  return request({
    method: 'POST',
    url: 'email/addEmailInfo',
    data: emailSendInfo,
    headers:{
      'Access-Token': getToken(),
    }
  })
}


export function modifyEmailInfoApi(emailSendInfo) {
    return request({
    method: 'POST',
    url: 'email/modifyEmailInfo',
    data: emailSendInfo,
    headers:{
      'Access-Token': getToken(),
    }
  })
}
